<template>
  <div class="chamber-commerce-style">
    <wxParse :content="content"/>
  </div>
</template>

<script>
import wxParse from 'mpvue-wxparse'

export default {
  data(){
    return{
      content:"这是富文本",
      id: "",
    }
  },
  components:{
    wxParse
  },
  onLoad(options){
    this.id = options.id;
    this.reqChamberCommerceStyleList();
  },
  //下拉刷新
  onPullDownRefresh () {
    this.reqChamberCommerceStyleList();
  },
  methods:{
    // 获取企业风采列表
    async reqChamberCommerceStyleList(){
      let params = {
        id:this.id
      };
      let res = await this.$api.getChamberCommerceStyleList(params);
      wx.stopPullDownRefresh()
      if(res.data.level == "success"){
        let data = res.data.data;
        this.content = data[0].content;
      }else{
        wx.showToast({
          title: '获取企业风采列表失败',
          icon: 'none',
          duration: 1000
        })
      }
    },
  }
}
</script>

<style lang="scss" scoped>
  .chamber-commerce-style{
    padding: 0 40rpx;
  }
</style>